<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
	<h2>测试jta事务</h2>
	<hr />
	<a href="test/oracle">oracle单独测试</a>
	<br />
	<span>这里的流程是从oracle数据库表中num字段-1</span>
	<br />
	<br />
	<hr />
	<a href="test/mysql">mysql单独测试</a>
	<br />
	<span>这里的流程是从mysql数据库表中num字段-1</span>
	<br />
	<br />
	<hr />
	<a href="test/update">更新测试</a>
	<br />
	<span>这里的流程是从oracle数据库表中num字段-1,mysql里面的num字段+1</span>
	<br />
	<br />
	<a href="test/rollback">回滚测试</a>
	<br />
	<span>这里首先从oracle数据库里面num字段-1,然后比较num的值和mysql里面num的大小,大于或等于就抛出一个异常,小于的话mysql里面的num字段+1,也抛出一个异常</span>
	<br />
	<span>测试两种情况下是否都可以回滚成功</span>
	<br />
</body>
</html>
